home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8339 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  844 b 

  1. Path: news.clark.net!not-for-mail
  2. From: eamick@clark.net (Eric Amick)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: using pipe() and dup2??????
  5. Date: 2 Mar 1996 02:35:55 GMT
  6. Organization: the end of my rope
  7. Message-ID: <4h8c6b$n9g@clarknet.clark.net>
  8. References: <4h21f7$osc@maltese.eag.unisysgsg.com> <4h3sbq$n35@charm.il.ft.hse.nl>
  9. NNTP-Posting-Host: explorer.clark.net
  10. Mime-Version: 1.0
  11. Content-Type: TEXT/PLAIN; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Newsreader: TIN [UNIX 1.3 950726BETA PL0]
  14.  
  15. robert (robert@il.ft.hse.nl) wrote:
  16. >You should try popen(), which works much easier:
  17. >After this, you can use fp with most file-stream functions (fread(), fgets(),
  18. >fclose()).
  19.  
  20. pclose(), not fclose(), is used to close the stream pointer created by
  21. popen(). 
  22.  
  23. -- 
  24. Eric Amick            eamick@clark.net
  25. Columbia, MD            Public key available via finger
  26.